<template>
  <div class="form-field-entry">
    <h4 class="form-field-title">{{title}}</h4>
    <slot></slot>
    <span class="form-field-description">{{fieldDescription}}</span>
  </div>
</template>

<script setup lang="ts">
defineProps({
  title: {
    type: String,
  },
  fieldDescription: {
    type: String
  }
})
</script>

<style scoped>
  .form-field-entry {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
  }


  .form-field-description {
    margin-top: 10px;
    font-size: 0.8em;
    color: #5c606a;
  }
</style>